package com.koron.common.core.business.common.mapper;

import com.koron.common.core.business.common.entity.EqCodeBean;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

public interface EqCodeBeanMapper {
    int deleteByPrimaryKey(String id);

    int insert(EqCodeBean record);

    int insertSelective(EqCodeBean record);

    EqCodeBean selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(EqCodeBean record);

    int updateByPrimaryKey(EqCodeBean record);

    int batchInsert(@Param("list") List<EqCodeBean> list);

    List<EqCodeBean> queryAll();

    int deleteByIdIn(@Param("idCollection") Collection<String> idCollection);

    EqCodeBean queryByEquipmentId(@Param("equipmentId") String equipmentId);

    /**
     * @param equipmentId 台账id\车辆id
     * @param envVersion  环境
     * @return
     */
    EqCodeBean queryByEquipmentIdAndEnvVersion(@Param("equipmentId") String equipmentId, @Param("envVersion") String envVersion);

    List<EqCodeBean> queryByEquipmentIdIn(@Param("equipmentIdCollection") Collection<String> equipmentIdCollection);
}
